package com.blacksea.authserver.web.response;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * AuthorizationCodeResponse
 * 用户认证入口: 请求获取Code
 *
 * @author blacksea3(jxt) 2021/4/11 14:48
 */
@Data
@NoArgsConstructor
public class AuthorizationCodeResponse {
    // 状态
    private String state;

    // 重定向Uri
    private String redirectUri;

    // 授权code
    private String code;

    // 错误信息
    private String message;

    public AuthorizationCodeResponse(ResponseStateEnum responseStateEnum, String redirectUri, String code,
        String message) {
        this.state = responseStateEnum.getStr();
        this.redirectUri = redirectUri;
        this.code = code;
        this.message = message;
    }
}
